<template>
  <div>
    <el-select multiple v-model="selector" placeholder="可多选"
               style="margin-left: 1.25rem;">
      <el-option v-for="i in tableData" :label="i.name" :value="i.code"></el-option>
    </el-select>
    <el-button @click="click">重置</el-button>
  </div>
</template>

<script>

export default {
  methods: {
    click(){
      this.selector = []
    }
  },
  components: {},
  data() {
    return {
      selector: [],
      tableData: [{
        date: '2016-05-02',
        name: '王小虎1',
        address: '上海市普陀区金沙江路 1518 弄',
        code: 1
      }, {
        date: '2016-05-04',
        name: '王小虎2',
        address: '上海市普陀区金沙江路 1517 弄',
        code: 2
      }, {
        date: '2016-05-01',
        name: '王小虎3',
        address: '上海市普陀区金沙江路 1519 弄',
        code: 3
      }, {
        date: '2016-05-03',
        name: '王小虎4',
        address: '上海市普陀区金沙江路 1516 弄',
        code: 4
      }]
    }
  }
}
</script>
